﻿<?xml version="1.0" encoding="utf-8"?>
<CodeSnippet Format="1.0.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <Header>
    <Title>IFormEx</Title>
    <Author>jinlei</Author>
    <Shortcut>IFormEx</Shortcut>
    <Description>IFormEx</Description>
    <SnippetTypes>
      <SnippetType>SurroundsWith</SnippetType>
      <SnippetType>Expansion</SnippetType>
    </SnippetTypes>
  </Header>
  <Snippet>
    <Declarations>
      <Literal>
        <ID>IFormEx</ID>
        <Default></Default>
      </Literal>
    </Declarations>
    <Code Language="XML">
      <![CDATA[#region IFormEx
	  
		public XXXXXX Model { get; set; }
	  
        public void ConvertToControl()
        {
            this.FormBorderStyle = FormBorderStyle.None;
            this.TopLevel = false;
        }

        public void ContvetToForm()
        {
            this.FormBorderStyle = FormBorderStyle.Sizable;
            this.TopLevel = true;
        }
        #endregion]]>
    </Code>
  </Snippet>
</CodeSnippet>